.NavBar {
  flex: 0;
  background-color: #306998;
  color: white;
  padding: 4px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.NavBar a {
    text-decoration: none;
}
.NavBar h1 {
    padding: 8px;
    margin: 0px 2rem;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}
.NavBar h1:hover, .NavBar li:hover {
    color: #fff792;
}
.NavBar ul {
    margin: 0px;
}
.NavBar ul li {
    display: inline-block;
    margin-right: 2rem;
    padding: 8px;
    font-size: 1.25rem;
    color: white;
    cursor: pointer;
    user-select: none;
}
.NavBar ul li a {
    color: white;
    text-decoration: none;
}


/******************************************************************************/

div.warning-work-in-progress {
    background-color: #fff792;
    color: black;
    text-align: center;
}


/******************************************************************************/

body {
    font-size: 1.05rem;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    display: grid;
    grid-template-rows: auto auto 1fr;
    flex-direction: column;
}

div.clearer { display: none; }

div.body {
    background-color: #f8f8f8;
}

div.body p, div.body dd, div.body li, div.body blockquote {
    line-height: 150%;
}

div.document {
    background-color: #f8f8f8;
    min-height: 0px;
    flex: 1 1;

    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "sidebar content";

    overflow-y: auto;
}

div.documentwrapper {
    grid-area: content;
    float: none;
    width: auto;
}

div.bodywrapper {
    margin: 0px;
}

div.body > section {
    padding: 2rem 1.5rem;
}

div.sphinxsidebar {
    grid-area: sidebar;
    width: 18rem;
    margin: 0px;
    float: none;
    border-right: 1px solid #306998;
    background-color: #f0f0f0;
}

div.sphinxsidebar p.caption {
    text-transform: uppercase;
}

div.sphinxsidebar ul, div.sphinxsidebar p.caption {
    margin-left: 1rem;
}

div.sphinxsidebar p.caption {
    padding-left: 4px;
}

div.sphinxsidebar ul li.toctree-l1 {
    margin: 1rem 0px;
}

div.sphinxsidebar ul li.toctree-l2 {
    margin: 0.3333rem 0px;
}

div.sphinxsidebar ul li.toctree-l1 > a {
    font-weight: bold;
}

div.sphinxsidebar ul li[class*="toctree-"] a.current {
    background-color: #fff792;
}

.admonition.caution {
    background-color: #fff792;
    padding: 1rem;
    margin: 2rem 3rem;
    border-radius: 4px;
}

div.contents.local > ul {
    margin-bottom: 1rem;
}

div.toctree-wrapper p.caption {
    margin-top: 2rem;
    text-transform: uppercase;
}

div.sphinxsidebar ul, div.sphinxsidebar ul ul {
    list-style-type: none;
}

div.toctree-wrapper li.toctree-l1 {
    margin-top: 0rem;
}
div.toctree-wrapper li.toctree-l2 {
    margin-top: 0rem;
}

div.document a {
    padding: 2px;
    border-radius: 2px;
}

div.document a:hover {
    text-decoration: none;
    background-color: #fff792;
    color: black;
}

div.docs-home-link li > a, div.documentwrapper li > a, div.sphinxsidebar li > a {
    display: inline-block;
    padding: 3px;
    border-radius: 3px;
}

div.docs-home-link {
    font-weight: bold;
}

div.docs-home-link hr {
    border-width: 0px;
    height: 1px;
    margin: 2rem 1.25rem 1rem 1.25rem;
    background-color: #228;
}

span.pre {
    padding: 2px;
}


/******************************************************************************/

div[class*="highlight-"] {
    margin-left: 2rem;
    margin-right: 2rem;
}

div[class*="highlight-"] > div.highlight > pre {
    font-size: 0.95rem;
    padding: 0.5rem;
}

dl:not([class]) > dt,
dl.simple > dt {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

dl.py.function, dl.py.attribute {
    margin-top: 1.25rem;
}

dl.py.function dt, dl.py.attribute dt {
    margin-bottom: 0.5rem;
    padding: 4px 0px 6px;

    /* As pygments: */
    background-color: #eeffcc;
    border: 1px solid #ac9;
    border-left: none;
    border-right: none;
}

dl.py.function + p, dl.py.attribute + p {
    margin-top: 0.5rem;
}

code.descclassname, code.descname {
    font-size: 1.2rem;
    padding: 0px;
}

/* First-order approximation to italic correction: */
.sig-param + .sig-paren {
    margin-left: 0.1111rem;
}

div.highlight span.hll {
    background-color: #ddd;
}
